<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/tabooState.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('tabooState_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">includes/tabooState.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="tabooList_8h_source.html">tabooList.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for tabooState.h:</div>
<div class="dyncontent">
<div class="center"><img src="tabooState_8h__incl.png" border="0" usemap="#includes_2tabooState_8h" alt=""/></div>
<map name="includes_2tabooState_8h" id="includes_2tabooState_8h">
<area shape="rect" id="node3" href="tabooList_8h.html" title="tabooList.h" alt="" coords="127,83,212,112"/><area shape="rect" id="node5" href="tabooExpire_8h.html" title="tabooExpire.h" alt="" coords="119,160,220,189"/><area shape="rect" id="node7" href="edgeID_8h.html" title="edgeID.h" alt="" coords="91,237,165,267"/></map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="tabooState_8h__dep__incl.png" border="0" usemap="#includes_2tabooState_8hdep" alt=""/></div>
<map name="includes_2tabooState_8hdep" id="includes_2tabooState_8hdep">
<area shape="rect" id="node3" href="los_8h.html" title="includes/los.h" alt="" coords="209,83,311,112"/><area shape="rect" id="node7" href="stm_8h.html" title="includes/stm.h" alt="" coords="5,160,112,189"/><area shape="rect" id="node11" href="ltm_8h.html" title="rappresenta il livello LTM dell&#39;algoritmo UCARPP" alt="" coords="359,315,460,344"/><area shape="rect" id="node5" href="add_8h.html" title="includes/add.h" alt="" coords="136,160,243,189"/><area shape="rect" id="node13" href="remove_8h.html" title="includes/remove.h" alt="" coords="267,160,395,189"/><area shape="rect" id="node15" href="swap_8h.html" title="includes/swap.h" alt="" coords="419,160,533,189"/><area shape="rect" id="node9" href="LTMConfiguration_8h.html" title="includes/LTMConfiguration.h" alt="" coords="156,237,343,267"/></map>
</div>
</div>
<p><a href="tabooState_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTabooState.html">TabooState</a></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structTabooState.html">TabooState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooState_8h.html#a44063c08de69020e2768d4d50f2f24a1">TabooState</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structTabooState.html">TabooState</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooState_8h.html#aff6d798c4195a8e94eeb5aa09957992b">initTabooState</a> (int *N, int *K, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> initTime)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooState_8h.html#a212a15b659266e96d6a699ab2ec4b5de">freeTabooState</a> (<a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a> pts)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooState_8h.html#a5482d3d7f95940df81c4ad2c368103ca">getTabooListInTabooState</a> (<a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a> p_tabooState, int k)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooState_8h.html#a319a8d950884b495806e907fb3de874e">printTabooState</a> (FILE *f, <a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a> pts, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooState_8h.html#aa4f7ffb52480cb8b88e3261f8a53958f">printTabooStateAsSet</a> (FILE *f, <a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a> pts, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooState_8h.html#a6384f0a71a377fef8a97adb7e02599b0">resetTabooState</a> (<a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a> pts, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> resetvalue)</td></tr>
</table>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="aabdb68ff37c6a806d0a2555b0186c9a8"></a><!-- doxytag: member="tabooState.h::PtabooState" ref="aabdb68ff37c6a806d0a2555b0186c9a8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structTabooState.html">TabooState</a>* <a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a44063c08de69020e2768d4d50f2f24a1"></a><!-- doxytag: member="tabooState.h::TabooState" ref="a44063c08de69020e2768d4d50f2f24a1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structTabooState.html">TabooState</a>  <a class="el" href="structTabooState.html">TabooState</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>rappresenta una struttura contenente una serie di <a class="el" href="structTabooList.html">TabooList</a>. Si e' scelto di creare questa struttura (anziche' utilizzare un banale array) per conformarsi alle precedenti strutture che utilizzano K e N: dato che questa struttura e' grande K elementi, tale K e' accessibile utilizzando il campo ononimo nella struttura dati. </p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a212a15b659266e96d6a699ab2ec4b5de"></a><!-- doxytag: member="tabooState.h::freeTabooState" ref="a212a15b659266e96d6a699ab2ec4b5de" args="(PtabooState pts)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooState_8h.html#a212a15b659266e96d6a699ab2ec4b5de">freeTabooState</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a>&#160;</td>
          <td class="paramname"><em>pts</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>elimina dalla memoria tutte le tabooList contenute in memoria. Non vengono tuttavia eliminati gli <a class="el" href="structEdgeID.html">EdgeID</a> utilizzati</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>pts non NULL </li>
</ul>
</dd></dl>
<dl class="post"><dt><b>Postcondition:</b></dt><dd><ul>
<li>pts viene liberata completamente </li>
<li>la cella puntata da K <b>non</b> viene alterata</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">tbl</td><td>la lista di tabooList da eliminare </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5482d3d7f95940df81c4ad2c368103ca"></a><!-- doxytag: member="tabooState.h::getTabooListInTabooState" ref="a5482d3d7f95940df81c4ad2c368103ca" args="(PtabooState p_tabooState, int k)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> <a class="el" href="tabooState_8h.html#a5482d3d7f95940df81c4ad2c368103ca">getTabooListInTabooState</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a>&#160;</td>
          <td class="paramname"><em>p_tabooState</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p_tabooState</td><td>un riferimento allo stato taboo del problema </td></tr>
    <tr><td class="paramname">k</td><td>il camion di cui reperire il percorso </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>la taboo list del camion k </dd></dl>

</div>
</div>
<a class="anchor" id="aff6d798c4195a8e94eeb5aa09957992b"></a><!-- doxytag: member="tabooState.h::initTabooState" ref="aff6d798c4195a8e94eeb5aa09957992b" args="(int *N, int *K, TabooExpire initTime)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a> <a class="el" href="tabooState_8h.html#aff6d798c4195a8e94eeb5aa09957992b">initTabooState</a> </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>N</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>K</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>initTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>costruisce una serie di tabooLists</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">N</td><td>indica un puntatore ad una cella in memoria in cui e' presente il nuemro di nodi del grafo </td></tr>
    <tr><td class="paramname">K</td><td>indica un puntatore ad una cella in memoria in cui e' presente il numero di camion del grafo </td></tr>
    <tr><td class="paramname">initTime</td><td>indica il nuemro di iterazioni globale da inserire in ogni tabu. Per una taboo puliuta inserire il valore 0. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>un puntatore ad una lista di tabooLists. </dd></dl>

</div>
</div>
<a class="anchor" id="a319a8d950884b495806e907fb3de874e"></a><!-- doxytag: member="tabooState.h::printTabooState" ref="a319a8d950884b495806e907fb3de874e" args="(FILE *f, PtabooState pts, TabooExpire now)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooState_8h.html#a319a8d950884b495806e907fb3de874e">printTabooState</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a>&#160;</td>
          <td class="paramname"><em>pts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>stampa una serie di taboo lists</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>il file su cui stampare la rappresentazione grafica delle taboo lists </td></tr>
    <tr><td class="paramname">tbl</td><td>le taboo lists da stampare </td></tr>
    <tr><td class="paramname">now</td><td>indica il numero di iterazioni globali a cui l'algoritmo e' arrivato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa4f7ffb52480cb8b88e3261f8a53958f"></a><!-- doxytag: member="tabooState.h::printTabooStateAsSet" ref="aa4f7ffb52480cb8b88e3261f8a53958f" args="(FILE *f, PtabooState pts, TabooExpire now)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooState_8h.html#aa4f7ffb52480cb8b88e3261f8a53958f">printTabooStateAsSet</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a>&#160;</td>
          <td class="paramname"><em>pts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>stampa una serie di taboo lists nel formato Set (cfr printTabooListAsSet)</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>il file su cui stampare la rappresentazione grafica delle taboo lists </td></tr>
    <tr><td class="paramname">tbl</td><td>le taboo lists da stampare </td></tr>
    <tr><td class="paramname">now</td><td>indica il numero di iterazioni globali a cui l'algoritmo e' arrivato </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6384f0a71a377fef8a97adb7e02599b0"></a><!-- doxytag: member="tabooState.h::resetTabooState" ref="a6384f0a71a377fef8a97adb7e02599b0" args="(PtabooState pts, TabooExpire resetvalue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooState_8h.html#a6384f0a71a377fef8a97adb7e02599b0">resetTabooState</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tabooState_8h.html#aabdb68ff37c6a806d0a2555b0186c9a8">PtabooState</a>&#160;</td>
          <td class="paramname"><em>pts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>resetvalue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>imposto ogni taboo contenuto in questo stato di taboo al valore specificato. NON USARE!</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>pts non NULL </li>
</ul>
</dd></dl>
<dl class="post"><dt><b>Postcondition:</b></dt><dd><ul>
<li>all'interno di ogni taboolist presente in pts compare come TabooExpire il valore resetvalue</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pts</td><td>la taboo da modificare </td></tr>
    <tr><td class="paramname">resetvalue</td><td>il valore da sostituire a qualunque altro valore contenuto nella taboo </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="tabooState_8h.html">tabooState.h</a>      </li>

    <li class="footer">Generated on Wed Sep 4 2013 06:38:57 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
